package com.wsl.sharding.pojo;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "db_db")
public class DBDb {
    @Id
    private int dbId;

    private String dbName;

    private int groupId;

    private String hashValue;

    public int getDbId() {
        return dbId;
    }

    public void setDbId(int dbId) {
        this.dbId = dbId;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getHashValue() {
        return hashValue;
    }

    public void setHashValue(String hashValue) {
        this.hashValue = hashValue;
    }

    public DBDb(int dbId, String dbName, int groupId, String hashValue) {
        this.dbId = dbId;
        this.dbName = dbName;
        this.groupId = groupId;
        this.hashValue = hashValue;
    }

    public DBDb() {
    }

    @Override
    public String toString() {
        return "DBDb{" +
                "dbId=" + dbId +
                ", dbName='" + dbName + '\'' +
                ", groupId=" + groupId +
                ", hashValue='" + hashValue + '\'' +
                '}';
    }
}
